<layout name='Layout/layout_page' />
<script type="text/javascript" src="<{:STATICS}>/js/jquery-passwordStrength.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	//密码强度
	var $pwd = $('input[name="password"]');					   
	$pwd.passwordStrength();
});
</script>

	<ol class="breadcrumb">
		<li><a href="<{:U('User/index')}>">管理员设置</a></li>
      	<li class="active">编辑</li>
    </ol>

	<form id="ajaxForm" action="<{:U('User/update')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label" for="name">用户名：</label>
			<div class="col-md-5">
				<input type="text"
                class="form-control"
				name="username"
				id="username"
				data-rule-required="true"
				data-rule-rangelength="[2,15]"
				value="<{$list['username']}>"
				readonly
				/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="password">修改密码：</label>
			<div class="col-md-5">
				<input type="password"
				class="form-control"
				name="password"
				id="password"
				data-rule-rangelength="[6,16]"
				/>
				<div id="passwordStrengthDiv" style="margin-top:5px;" class="is0"></div> 
				<p>不修改密码请留空</p>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="status">状态：</label>
			<div class="col-md-5">
				<label class="radio-inline">
				<input name="status" type="radio" value="0"  <php>if($list['status']==='0')echo checked;</php>/>关闭						
				</label>
				<label class="radio-inline">		
				<input name="status" type="radio" value="1" <php>if($list['status']==='1')echo checked;</php>/>开启
				</label>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="repassword">用户组：</label>
			<div class="col-md-5">
				<select id="group" name="group" data-rule-required="true" class="form-control">
					<option value="">==请选择==</option>
					<volist name="group" id="vo">
						<option value="<{$vo.id}>"><{$vo.name}></option>
					</volist>
				</select>
			</div>
		</div>	
		<div class="form-group">
			<div class="col-md-11 col-md-offset-1">
				<button type="submit" class="btn btn-info">编辑</button>
			</div>
		</div>
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>

<script type="text/javascript">
$("#group").val("<{$list['group']}>");
</script>

<input type="hidden" id="menu_action" value="sys" />